package com.sport.model;

import org.restlet.engine.Engine;
import org.restlet.ext.net.HttpClientHelper;
import org.restlet.ext.jackson.JacksonConverter;

public class EngineConfiguration {
	private static EngineConfiguration ourInstance = new EngineConfiguration();

	public final static String gae_path = "http://sportapp16.appspot.com/";

	public static EngineConfiguration getInstance() {
		return ourInstance;
	}

	public EngineConfiguration() {
		Engine.getInstance().getRegisteredConverters().add(new JacksonConverter());
		Engine.getInstance().getRegisteredClients().add(new HttpClientHelper(null));
	}

	public static EngineConfiguration getOurInstance() {
		return ourInstance;
	}

	public static void setOurInstance(EngineConfiguration ourInstance) {
		EngineConfiguration.ourInstance = ourInstance;
	}
}
